package model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 *
 */
public class Uebung {
    private int number;
    private String label;
    private String url;
    private ArrayList<Ressource> ressources;

    public Uebung() {
        this.number = 0;
        this.label = new String();
        this.url = new String();
        this.ressources = new ArrayList<Ressource>();
    }
    
    public void setNumber(int number) {
        this.number = number;
    }

    /**
     * @return the number
     */
    public int getNumber() {
        return number;
    }

    /**
     * @return the name
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param name the name to set
     */
    public void setLabel(String name) {
        this.label = name;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 
     */
    public void addRessource(Ressource ressource) {
        this.ressources.add(ressource);
    }

    public List getRessources() {
        return Collections.unmodifiableList(this.ressources);
    }
    
}
